﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DTO;

namespace DAO
{
    public partial class Ve_HoaDon_DAO
    {
        public bool insertThanhToanVeBuffet(Ve_HoaDon vehoadon)
        {
            DataProvider dp = new DataProvider();

            SqlParameter[] Parameter = new SqlParameter[11];

            Parameter[0] = new SqlParameter("@manv", vehoadon.MaNV);
            Parameter[1] = new SqlParameter("@makh", vehoadon.MaKH);
            Parameter[2] = new SqlParameter("@buoianbuffet", vehoadon.BuoiAnBuffet);
            Parameter[3] = new SqlParameter("@ngay", vehoadon.Ngay);
            Parameter[4] = new SqlParameter("@venguoilon", vehoadon.VeNguoiLon);
            Parameter[5] = new SqlParameter("@vetreem", vehoadon.VeTreEm);
            Parameter[6] = new SqlParameter("@hinhthucthanhtoan", vehoadon.HinhThucThanhToan);
            Parameter[7] = new SqlParameter("@tong", vehoadon.Tong);
            Parameter[8] = new SqlParameter("@giamgia", vehoadon.GiamGia);
            Parameter[9] = new SqlParameter("@thanhtien", vehoadon.ThanhTien);
            Parameter[10] = new SqlParameter("@ngaylap", vehoadon.NgayLap);

            return dp.ExecutenonQuery("sp_insertThanhToanVeBuffer", Parameter);
        }
    }
}
